<?php

namespace App\Http\Logic;

use App\Models\AdminUser;
use App\Models\QueryLog;

class Dev extends Logic
{
    // 插入日志
    public function insertLog($params = []): int
    {
        return QueryLog::query()->insertGetId($params);
    }

    // 修改日志
    public function updateLog(int $id, string $message = ""): int
    {
        return QueryLog::query()->where('id', $id)->update(['error' => $message]);
    }
}
